using System;
using System.Threading.Tasks;

namespace Letter.IO.Channels;

public interface IChannelWriter<T>
{
    bool Active
    {
        get;
    }
    
    long Count
    {
        get;
    }

    ValueTask<bool> TryWriteAsync(T o);
    
    void Complete();
}